<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>


<logic:present name="auth" scope="session">

	<html:link href="stationAction.do">
		<bean:message key="label.stations" />
	</html:link>
	<br />

	<html:link href="routeAction.do">
		<bean:message key="label.routes" />
	</html:link>
	<br />

	<c:if  
		test="${auth.role.value eq 'ADMIN' || auth.role.value eq 'DRIVER'}">
		<html:link href="userAction.do?role=DRIVER">
			<bean:message key="label.drivers" />
		</html:link>
		<br />
	</c:if>

	<c:if test="${auth.role.value eq 'DRIVER'}">
		<html:link href="routeAction.do">
			<bean:message key="label.driversroute" />
		</html:link>
		<br />
	</c:if>

	<c:if test="${auth.role.value eq 'ADMIN'}">
		<html:link href="userAction.do?role=PASSENGER">
			<bean:message key="label.passengers" />
		</html:link>
		<br />

		<html:link href="userAction.do?role=ADMIN">
			<bean:message key="label.admins" />
		</html:link>
		<br />

	</c:if>
</logic:present>
